package HotleManagement;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Hotel a = new Hotel();
        command(a);
    }

    public static void command(Hotel a) {
        Scanner console = new Scanner(System.in);
        while (true) {
            System.out.println("欢迎进入zzxx酒店管理系统，请输入指令：show：查看空房；check：查看客户信息；in:入住；out:退房;exit：退出");
            String command = console.nextLine();
            switch (command) {
                case "show":
                    a.show();
                    break;
                case "check":
                    a.check();
                    break;
                case "in":
                    a.in();
                    break;
                case "out":
                    a.out();
                    break;
                case "exit":
                    System.exit(0);
                default:
                    System.out.println("指令错误，请重新输入指令");
                    break;
            }
        }
    }
}
